const NewsService = require("../../service/web/NewsService")

const NewsController = {
    getList: async (req, res) => {
        const result = await NewsService.getList(req.params.id)
        res.send({
            code: 200,
            msg: '获取成功',
            data: result
        })
    },
}

module.exports = NewsController